#ifndef QTABLEWIDGETEX_H
#define QTABLEWIDGETEX_H

#include <QObject>
#include <QWidget>
#include <QCursor>
#include <QMenu>
#include <QTableWidget>
#include <QContextMenuEvent>


class QTableWidgetEx : public QTableWidget
{
    Q_OBJECT
public:
   QTableWidgetEx();
   QTableWidgetEx(QWidget *parent=0);

   void contextMenuEvent(QContextMenuEvent *);//右键处理覆盖
   QMenu *menu;
   QAction* Act_DelRow;
   QAction* Act_ClearAll;

private slots:
   void on_Act_DelRow_triggered();
   void on_Act_ClearAll_triggered();

};

#endif // QTABLEWIDGETEX_H
